﻿<Ui xmlns="http://www.blizzard.com/wow/ui/" >
  <Script file="Buttons.lua" />
  <Frame name="AOSSControlsButtons" inherits="AOSSPanelTemplate">
    <Size>
      <AbsDimension x="400" y="400"/>
    </Size>
    <Anchors>
      <Anchor point="TOPLEFT" />
    </Anchors>
    <Frames>
      <SimpleHTML name="ButtonsSimpleHTML" inherits="ControlsSimpleHTMLTemplate" file="Interface\AddOns\AddOnStudioSamples\Controls\Buttons.html" />

      <Frame name="ButtonsDropDown" inherits="UIDropDownMenuTemplate">
        <Anchors>
          <Anchor point="TOPLEFT" >
            <Offset y="-800" />
          </Anchor>
        </Anchors>
        <Layers>
          <Layer level="BACKGROUND">
            <FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Templates">
              <Anchors>
                <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
                  <Offset x="21" y="0"/>
                </Anchor>
              </Anchors>
            </FontString>
          </Layer>
        </Layers>
        <Scripts>
          <OnLoad>
            self.type = CONTROLTYPE_DROPDOWN;
            UIDropDownMenu_DefaultLoad(self, 180, ButtonsDropDown_Initialize)
          </OnLoad>
        </Scripts>
      </Frame>

      <EditBox name="PrintTextEditBox" inherits="InputBoxTemplate" autoFocus="false">
        <Size>
          <AbsDimension x="180" y="20"/>
        </Size>
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset x="25" y="-1080" />
          </Anchor>
        </Anchors>
        <Layers>
          <Layer level="BACKGROUND">
            <FontString name="$parentLabel" inherits="GameFontNormalSmall" text="Type here">
              <Anchors>
                <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
                  <Offset x="-5" y="0"/>
                </Anchor>
              </Anchors>
            </FontString>
          </Layer>
        </Layers>
      </EditBox>

      <Button name="PrintTextButton" inherits="UIPanelButtonTemplate" text="Print">
        <Size>
          <AbsDimension x="80" y="22"/>
        </Size>
        <Anchors>
          <Anchor point="LEFT" relativeTo="PrintTextEditBox" relativePoint="RIGHT">
            <Offset x="16" y="0" />
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            print(PrintTextEditBox:GetText())
          </OnClick>
        </Scripts>
      </Button>
    </Frames>
    <Scripts>
      <OnLoad>
        AOSSControlsButtons_OnLoad(self)
      </OnLoad>
    </Scripts>
  </Frame>
</Ui>